package com.tengroup.vo;

import lombok.Data;

@Data
public class UserVo
{
    private long userId;
    private String userName;
    private String userPassword;
    private Integer userClass;
    private Integer roleId;
    private String userTruename;
    public long getUserId() {
        return (int) userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public UserVo(){}
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserVo)) {
            return false;
        } else {
           UserVo other = (UserVo)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$id = this.getUserId();
                    Object other$id = other.getUserId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label119;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label119;
                    }

                    return false;
                }

                Object this$roleid = this.getRoleId();
                Object other$roleid = other.getRoleId();
                if (this$roleid== null) {
                    if (other$roleid != null) {
                        return false;
                    }
                } else if (!this$roleid.equals(other$roleid)) {
                    return false;
                }

                label105: {
                    Object this$password = this.userPassword;
                    Object other$password = other.getUserPassword();
                    if (this$password == null) {
                        if (other$password == null) {
                            break label105;
                        }
                    } else if (this$password.equals(other$password)) {
                        break label105;
                    }

                    return false;
                }

                Object this$username = this.getUserName();
                Object other$username = other.getUserName();
                if (this$username == null) {
                    if (other$username != null) {
                        return false;
                    }
                } else if (!this$username.equals(other$username)) {
                    return false;
                }

                label91: {
                    Object this$realname = this.getUserTruename();
                    Object other$realname = other.getUserTruename();
                    if (this$realname == null) {
                        if (other$realname == null) {
                            break label91;
                        }
                    } else if (this$realname.equals(other$realname)) {
                        break label91;
                    }

                    return false;
                }


                label77: {
                    Object this$class = this.getUserClass();
                    Object other$email = other.getUserClass();
                    if (this$class == null) {
                        if (other$email == null) {
                            break label77;
                        }
                    } else if (this$class.equals(other$email)) {
                        break label77;
                    }

                    return false;
                }
                return true;
            }
        }

    }
    protected boolean canEqual(final Object other) {
        return other instanceof UserVo;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getUserId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $roleid = this.getRoleId();
        result = result * 59 + ($roleid == null ? 43 : $roleid.hashCode());
        Object $password = this.getUserPassword();
        result = result * 59 + ($password == null ? 43 : $password.hashCode());
        Object $username = this.getUserName();
        result = result * 59 + ($username == null ? 43 : $username.hashCode());
        Object $realname = this.getUserTruename();
        result = result * 59 + ($realname == null ? 43 : $realname.hashCode());
        Object $class = this.getUserClass();
        result = result * 59 + ($class == null ? 43 : $class.hashCode());
        return result;
    }

    public String toString() {
        return "SysUserVo(id=" + this.getUserId() + ", password=" + this.getUserName() + ", username=" + this.getUserName() + ", realname=" + this.getUserTruename()  + ", roleid=" + this.getRoleId() + ", class=" + this.getUserClass()  +")";
    }
}



